package cn.jiangjiesheng.bootstrap.gateway.commons;
//
//import cn.jiangjiesheng.bootstrap.qpaas.legacy.PlatformService;
//import cn.jiangjiesheng.bootstrap.qpaas.properties.PaasDevelopProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by dev@jiangjiesheng.cn on 2022/10/26  <br/>
 *
 * @author dev@jiangjiesheng.cn
 */
@Slf4j
@Service
public class UserService {

//    @Autowired
//    private PaasDevelopProperties paasDevelopProperties;
//
//    @Autowired
//    private PlatformService platformService;

    public boolean hasValidDevelopKey(String userId) {
//        return paasDevelopProperties.hasValidDevelopKey();
        return true;
    }

    public String getAccessTokenByLoginId(String userId) {
//        return platformService.loginByUserId(userId,
//                paasDevelopProperties.getAccessKey(),
//                paasDevelopProperties.getAccessSecret()
//        );
        return "getAccessTokenByLoginId";
    }

    public String getAccessKey(){
//        return paasDevelopProperties.getAccessKey();
        return "getAccessKey";
    }
}
